package com.lt.test.entity.DO;

import java.io.Serializable;


public class ShopDO implements Serializable {
    private static final long serialVersionUID = 1L;
    private Long id;
    private String shopName;
    private String address;
    private int state;
    private String stateStr;
    private String createTime;
    private Long userId;
    private String username;
    private String phone;
    private String isExp;
    private String shopType;
    private Long shipmentCount;
    private Long shipmentDayCount;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
        switch (state) {
            case 1:
                this.stateStr = "通过";
                break;
            case 3:
                this.stateStr = "待审核";
                break;
            case 4:
                this.stateStr = "拒绝";
                break;
            case 5:
                this.stateStr = "经营";
                break;
            case 6:
                this.stateStr = "注销";
                break;
            case 7:
                this.stateStr = "歇业";
                break;
            default:
                this.stateStr = "无效";
                break;
        }
    }

    public String getStateStr() {
        return stateStr;
    }

    public void setStateStr(String stateStr) {
        this.stateStr = stateStr;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getIsExp() {
        return isExp;
    }

    public String getShopType() {
        return shopType;
    }

    public void setShopType(String shopType) {
        this.shopType = shopType;
    }

    public void setIsExp(String isExp) {
        this.isExp = isExp;
    }

    public Long getShipmentCount() {
        return shipmentCount;
    }

    public void setShipmentCount(Long shipmentCount) {
        this.shipmentCount = shipmentCount;
    }

    public Long getShipmentDayCount() {
        return shipmentDayCount;
    }

    public void setShipmentDayCount(Long shipmentDayCount) {
        this.shipmentDayCount = shipmentDayCount;
    }

    @Override
    public String toString() {
        return "ShopDO{" +
                "id=" + id +
                ", shopName='" + shopName + '\'' +
                ", address='" + address + '\'' +
                ", state=" + state +
                ", stateStr='" + stateStr + '\'' +
                ", createTime='" + createTime + '\'' +
                ", userId=" + userId +
                ", username='" + username + '\'' +
                ", phone='" + phone + '\'' +
                ", isExp='" + isExp + '\'' +
                ", shipmentCount=" + shipmentCount +
                ", shipmentDayCount=" + shipmentDayCount +
                '}';
    }
}
